package com.yuhs.zixing.study.multithread.mashibing.t001base.t003.start;

import lombok.extern.slf4j.Slf4j;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * Function: 启动线程 5
 *
 * @Author yuhongsheng
 * @Date: 2023-12-18 21:18:04
 */
@Slf4j
public class ThreadStart005 {

    public static void main(String[] args) {

        ExecutorService executorService = Executors.newCachedThreadPool();
        executorService.execute(() -> log.atInfo().log("线程池启动线程"));
        executorService.shutdown();

    }


}
